<%@ page language="java" contentType="text/html;charset=utf-8" pageEncoding="utf-8"%>
<%@ include file="/base/jsp/taglibs.jsp"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<%@ include file="/base/jsp/jscss.jsp"%>
	<title></title>
	<script type="text/javascript">
	
	
	$(function () {
		
		$('#dataList').datagrid({  
//				url:'${ctx}/base/dictionary/dictionary!dynamic.do',
		    title:'list',
		    pagination:true,
		    rownumbers:true,
		    singleSelect:true,
		    fitColumns: true,
		    toolbar:easyUi.initButton([{name:'add'}]),
// 		    columns:[[  
// 	                {field:'name',title:'名称',width:100},  
// 	                {field:'processDefineName',title:'流程定义名称',width:100},  
// 	                {field:'processDefineId',title:'流程定义编号',width:100},  
// 	                {field:'processDefineKey',title:'流程定义key',width:100},  
// 	                {field:'processDeploymentId',title:'流程部署编号',width:100},  
	                
// 	            ]],
		});
		$("#dataList").datagrid("loadData",${processDefines}); 
	});
	</script>
	
</head>
<body>
	<table id="dataList">
		<tr>
			<td>id</td>
			<td>name</td>
			<td>processDefineName</td>
			<td>processDefineId</td>
			<td>processDefineKey</td>
			<td>formUrl</td>
			<td>操作</td>
		</tr>
<%-- 	<c:forEach items="${processDefines }" var="define" varStatus="i"> --%>
<!-- 		<tr> -->
<%-- 			<td>${define.id }</td> --%>
<%-- 			<td>${define.name }</td> --%>
<%-- 			<td>${define.processDefineName }</td> --%>
<%-- 			<td>${define.processDefineId }</td> --%>
<%-- 			<td>${define.processDefineKey }</td> --%>
<%-- 			<td>${define.formUrl }</td> --%>
<!-- 			<td> -->
<%-- 				<a href="${ctx }/bpm/bpm!start.do?id=${define.id }">发起</a> --%>
<%-- 				<a href="${ctx }/bpm/bpm!allTasks.do?id=${define.id }">详细</a> --%>
<%-- 				<a href="${ctx }/bpm/bpm!processImage.do?defineId=${define.processDefineId }">流程图</a> --%>
<%-- 				<a href="${ctx }/bpm/bpm!processInstanceList.do?defineId=${define.processDefineId }">实例List</a> --%>
<%-- 				<a href="${ctx }/bpm/bpm!processSetting.do?id=${define.processDefineId }">设置</a> --%>
				
<!-- 			</td> -->
<!-- 		</tr> -->
<%-- 	</c:forEach> --%>
	</table>

	<display:table id="" name="${definitions }" />

	
	
	<div id='mainPanel'>
		<div id="toolbar" class="datagrid-toolbar"></div>
		
		<form action="${ctx }/bpm/bpm!deploymentProcess.do" enctype="multipart/form-data" method="post"  id="form">
		<table>
			<tr>
				<td>Name:</td>
				<td><input class="easyui-validatebox" type="text"
					name="processDefine.name" data-options="required:true"></input></td>
			</tr>
			<tr>
				<td>formUrl:</td>
				<td><input class="easyui-validatebox" type="text"
					name="processDefine.formUrl" data-options="required:true"></input></td>
			</tr>
			<tr>
				<td>流程建模:</td>
				<td><input class="easyui-validatebox" type="file"
					name="processZip" data-options="required:true"></input></td>
			</tr>
			
			<tr>
				<td><input type="submit"/></td>
			</tr>
			</table>
		</form>
	</div>	
	
	
</body>
</html>